<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>抓取详情</title>
    <link rel="stylesheet"  href="src/css/base.css?__version=9.4">
    <link rel="stylesheet"  href="src/css/pages.css?__version=9.4">
    <script type="text/javascript" src="src/js/jquery-1.10.1.min.js?__version=9.4"></script>
    <script type="text/javascript" src="src/js/rem.js?__version=9.4"></script>
    <script type="text/javascript" src="src/js/dropload.js?__version=9.4"></script>
    <script type="text/javascript" src="src/js/init.js?__version=9.4"></script>

	<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="/src/js/share.js?__version=9.4"></script>
    <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?8ed2efe5b24e14f351f4d88ba2eb3462";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
</head>
<body>
	<div class="init_content" style="display: none;">
        <div class="warp capture_warp" id="htmlDataList">
            <div class="caption">
                <div class="item gameinfo flex">
                </div>
                <div class="game_item">
                    <a id="user_playrecordto" href="">
                        <span>观看游戏视频</span>
                        <img style="margin-top:12px;" class="pull-right" src="src/img/play.png">
                    </a>
                </div>
                <div class="game_item">
                    <span>游戏编码</span>
                    <span style="margin-top:20px;" class="pull-right gamecode"></span>
                </div>
                <div class="game_item">
                    <a id="appealto" href="">
                        <span class="appeal_text">游戏过程中遇到任何问题请点击申诉按钮反馈</span>
                        <span class="appeal_btn">申诉</span>
                    </a>
                </div>
            </div>
    	</div>
	</div>
	<div class="init_loading">
        <img src="src/img/page_loading.gif?v=1">
    </div>
</body>
<script>
var play_Id=getQueryString('play_id');
console.log(play_Id)
var uid=cookieGet("uid");
addheader("抓取详情","/userecord.html?uid="+uid);
$(function(){
    $(".gamecode").html(play_Id)
    $("#user_playrecordto").attr("href","/user_playrecord.html?gameid="+play_Id+"&&uid="+uid);
    $("#appealto").attr("href","/appeal.html?play_id="+play_Id);


    fetchData("/OpenAPI/V1/User/playList",{token:token,uid:uid,page:1},function(data){
        console.log(data)
        var list=data.list;
        var html='';
        for(var i=0;i<list.length;i++){
            if(list[i]['result']=="0"){
                var text="未命中";
            }else{
                var text="抓中了";
            }
            if(list[i]['game_id']==play_Id){
                if(list[i]['state']=="2"){
                    $(".appeal_btn").text("已申诉");
                    $("#appealto").attr("href","javascript:;")
                }else if(list[i]['state']=="3"){
                    $(".appeal_btn").text("已处理");
                    $("#appealto").attr("href","javascript:;")
                }else{
                    $(".appeal_btn").text("申诉");
                }
                html+='<img class="cover" src="'+list[i]['cover']+'">'
                    +'<div class="info">'
                        +'<p class="name text-beyond">'+list[i]['title']+'</p>'
                        +'<p class="time text-beyond">2'+list[i]['start_time']+'</p>'
                    +'</div>'
                    +'<span class="align-right result">'+text+'</span>'
            }
        }
        $(".gameinfo").html(html);
    });
})


</script>
</html>